package com.app.sysmodule.utils;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by song on 2017/11/8.
 * http请求封装heads
 */
public class RequestData {
    public static Map<String,String> getHeaders(HttpServletRequest request){
        Map<String,String> resultMap = new HashMap<String, String>();
        resultMap.put("token",request.getHeader("token"));
        resultMap.put("section",request.getHeader("section"));
        resultMap.put("source",request.getHeader("source"));
        resultMap.put("userId",request.getHeader("userId"));
        resultMap.put("clientversion",request.getHeader("clientversion"));
        resultMap.put("imei",request.getHeader("imei"));
        return resultMap;
    }
}
